package exception

import (
	"github.com/pkg/errors"
)

type BizException interface {
	error
	Code() string
}
type SysException interface {
	error
	SysCode() string
}

func NewTraceError(e error) error {
	return errors.WithStack(e)
}
